package com.example.haoqisystem.Base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Min;

@Data
@ApiModel
public class BasePageQuery {
    @ApiModelProperty(value = "页码", example = "1")
    @Min(message = "页码错误", value = 1)
    private int pageNum = 1;
    @ApiModelProperty(value = "每页记录数", example = "10")
    @Min(message = "每页记录数错误", value = 1)
    private int pageSize = 10;
}